<h1>Listing <%= @category.name -%> properties</h1>

<table>
  <tr>
    <th>Name</th>
  </tr>

<% for property in @properties %>
  <tr>
    <td><%=h property.name %></td>
    <td><%= link_to 'Show', [@category,property] %></td>
    <td><%= link_to 'Edit', [:edit,@category,property] %></td>
    <td><%= link_to 'Destroy',  [@category, property], :confirm => '确定删除?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New property', new_category_property_path %>
